import Vue from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'
import dataV from "@jiaminghi/data-view";
import './assets/css/global.css'
import './assets/icons' 
import './rem'
import {
  Table,
  TableColumn,
  RadioGroup,
  RadioButton,
  Message,
  Button,
  Loading,
  Tabs,
  TabPane,
  Popover,
  Tooltip,
  Dropdown,
  DropdownMenu,
  DropdownItem,
  Switch
} from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import axios from "axios"
import i18n from './lang'
// import 'default-passive-events'

//配置请求的根路径
axios.defaults.baseURL = '';
Vue.prototype.$http = axios;

axios.interceptors.response.use((config) => {
  return config
});

Vue.config.productionTip = false

Vue.use(Table);
Vue.prototype.$message = Message;
Vue.use(TableColumn);
Vue.use(RadioGroup);
Vue.use(RadioButton);
Vue.use(dataV);
Vue.use(Button);
Vue.use(Loading);
Vue.use(Tabs);
Vue.use(TabPane);
Vue.use(Popover);
Vue.use(Tooltip);
Vue.use(Dropdown);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Switch);
// Vue.use(Element, {
//   i18n: (key, value) => i18n.t(key, value)
// })

// Vue.prototype.$message = Message;

new Vue({
  router,
  i18n,
  store,
  render: h => h(App)
}).$mount('#app')
